package com.devops

class AppMeta {

    def meta = [
        [
            app: "happy-api",
            lang: "java",
            artifact: 'target/happy-api.jar',
            git: "git@gitee.com:Ll201108/happy-api.git"
        ],
        [
            app: "mall-admin",
            lang: "java",
            artifact: 'mall-admin/target/mall-admin.jar',
            git: "git@gitee.com:Ll201108/mall.git"
        ]
    ]

    def getMeta(String app) {
        def result = meta.find { value ->

            if (value.app.equals(app)) {
                return value
            }
            return null
        }
        return result
    }

}